Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Break Up LaTeX Source on Section Macros #101

Merged
merged 43 commits into from
Jul 24, 2024

Conversation

renee-k
Copy link
Contributor

@renee-k renee-k commented Jun 12, 2024

The function breakOnBoundaries takes an AST and replaces section macros like \section{...} into environments like \begin{_section}\end{_section}, modifying the AST.

@siefkenj siefkenj merged commit 2e30cf1 into siefkenj:pretext Jul 24, 2024
2 checks passed
@renee-k renee-k deleted the break-section-pretext branch July 26, 2024 17:17
siefkenj added a commit that referenced this pull request Aug 20, 2024
Report unsupported macros by katex and expand user-define commands

* Break Up LaTeX Source on Section Macros (#101)

Break up a latex source by divisions (`\section` , `\subsection`, etc.) and turn those divisions into environments. E.g., `\section{foo}XXX\section{bar}YYY` becomes 

```
\begin{_section}[foo]XXX\end{_section}
\begin{_section}[bar]YYY\end{_section}
```

This is an intermediate step in the PreTeXt conversion.

* [WIP] author-info (#100)

Add function to extract information from the `\author{...}` tag that appears before `\begin{document}...`

* Fix the skipped test cases in the PreTeXt package (#103)

Necessary macro subs and environment subs to create valid PreTeXt from LaTeX.

* Added LaTeX to PreTeXt Plugin to the CLI package (#113)

* started adding pretext package to cli

* Upgrade deps

* Rebuild documentation

---------

Co-authored-by: Renee <[email protected]>
Co-authored-by: Bo-Y-G <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants